@import 'mixin.scss';
@import 'color.scss';
$default-font-color:#505050;
$color-808088:#808088;
@font-face {
    font-family: 'Microsoft_YaHeid3dd71ba318c83';
    src: url('//cdn.webfont.youziku.com/webfonts/nomal/101507/1015/59c0af92f629d80d843b321b.gif?r=54193682714');
    src: url('//cdn.webfont.youziku.com/webfonts/nomal/101507/1015/59c0af92f629d80d843b321b.gif?r=54193682714?#iefix') format('embedded-opentype'), url('//cdn.webfont.youziku.com/webfonts/nomal/101507/1015/59c0af92f629d80d843b321b.bmp?r=54193682714') format('woff'), url('//cdn.webfont.youziku.com/webfonts/nomal/101507/1015/59c0af92f629d80d843b321b.jpg?r=54193682714') format('truetype'), url('#Microsoft_YaHei') format('svg');
}

.cssd040cbd5a18c83 {
    font-family: 'Microsoft_YaHeid3dd71ba318c83';
}

body {
    font-family: "Microsoft YaHei", "微软雅黑" !important;
    color: $default-font-color;
    line-height: 1;
    background-color: $body-background-color;
}

*,
:after,
:before {
    box-sizing: border-box;
}

a {
    color: $link-a-color;
}

.row {
    margin: 0 auto;
}

.hidden {
    height: 100vh;
    overflow: hidden;
}

.w100 {
    width: 100vw
}

.pull-right {
    float: right
}

.pull-left {
    float: left
}

.flexbox {
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.relative {
    position: relative
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.mint-zindex {
    z-index: 3000!important
}

[v-cloak] {
    display: none;
}

@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/*头部加载条*/

.pace .pace-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9000;
    height: 2px;
    background: #22df80;
    -webkit-transition: width 1s;
    -moz-transition: width 1s;
    -o-transition: width 1s;
    transition: width 1s;
}

.pace .pace-progress-inner {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #22df80, 0 0 5px #22df80;
    opacity: 1.0;
    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -moz-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    -o-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
}

.pace-inactive {
    display: none;
}

.loader {
    display: inline-block;
    margin-right: rem(15px);
    height: rem(25px);
    width: rem(25px);
    background-color: $color-666;
    border-radius: 100%;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    border: rem(2px) solid $color-666;
    border-bottom-color: transparent;
    background: transparent !important;
    -webkit-animation: rotate 0.75s 0s linear infinite;
    animation: rotate 0.75s 0s linear infinite;
}

.to-top {
    position: fixed;
    right: rem(30px);
    bottom: rem(30px);
    z-index: 2;
    width: rem(88px);
    height: rem(88px);
    background: url("../images/backTop.png") no-repeat;
    background-size: rem(88px);
}

#app {
    min-width: 300px;
    margin: 0 auto;
}

.price {
    display: inline-block;
    margin: rem(18px) 0;
    font-size: rem(30px);
    color: $color-ff1969;
}

.self-icons {
    display: inline-block;
    margin-right: rem(10px);
    width: rem(65px);
    border: 1px $subject-color solid;
    border-radius: rem(5px);
    line-height: rem(35px);
    font-size: rem(22px);
    text-align: center;
    color: $subject-color;
}

.header-sprites {
    background-image: url(../images/header-icons.png);
    background-repeat: no-repeat
}

.header-search {
    position: relative;
    padding: rem(20px) rem(30px);
    height: rem(95px);
    .search-input {
        @include flex;
        height: rem(55px);
        .search-icon {
            display: inline-block;
            position: absolute;
            top: rem(13px);
            left: rem(20px);
            width: rem(28px);
            height: rem(28px);
            @include img-position(0,rem(-44px));
            background-size: rem(44px);
        }
    }
    input {
        width: 100%;
        height: 100%;
        border: none;
        padding: rem(15px) 0 rem(15px) rem(70px);
        border-radius: rem(20px);
        font-size: rem(24px);
        line-height: rem(23px);
    }
    .msg-icson,
    .cancel {
        display: inline-block;
        margin-left: rem(20px);
    }
    .msg-icson {
        width: rem(44px);
        height: rem(43px);
        background-size: rem(43px) rem(73px);
    }
    .cancel {
        font-size: rem(30px);
        color: $color-808088;
    }
}

.search-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3
}

.go-back {
    display: inline-block;
    margin-right: rem(20px);
    width: rem(18px);
    height: rem(32px);
    background: url(../images/arrow_back.png) no-repeat;
    background-size: rem(18px) rem(32px);
}

.end {
    padding: rem(40px) 0;
    font-size: rem(28px);
    line-height: rem(28px);
    text-align: center;
    color: $color-666;
}

.white-thems {
    border-bottom: 1px $border-color-DCDCDC solid;
    background-color: $color-white;
    z-index: 10;
    .search-input {
        input {
            background-color: $input-bgColor-F1F2F6;
        }
    }
    .header-search {
        .msg-icson {
            background-image: url(../images/message_icon.png);
            background-repeat: no-repeat;
            background-size: cover;
        }
    }
}

.product-info {
    padding: rem(20px) rem(10px) rem(15px);
    h2 {
        font-size: rem(28px);
    }
}

.self-sell {
    .self-like {
        font-size: rem(24px);
        line-height: rem(24px);
        color: $color-666;
    }
}

// 底部
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: rem(5px) 0 rem(8px);
    height: rem(100px);
    background: $color-white;
    @include box-shadow(0 0 10px 0 rgba(155,
    143,
    143,
    0.6));
    a {
        display: block;
    }
    li {
        @include flex;
        text-align: center;
        font-size: rem(20px);
        i {
            display: block;
            margin: 0 auto rem(5px);
            width: rem(52px);
            height: rem(54px);
            background: url(../images/footer_icons.png) no-repeat;
            background-size: rem(115px) rem(220px);
            &.home-icon {
                @include img-position;
            }
            &.type-icon {
                @include img-position(0,
                rem(-54px));
            }
            &.cart-icon {
                position: relative;
                left: rem(-3px);
                @include img-position(0,
                rem(-105px));
            }
            &.user-icon {
                @include img-position(rem(-2px),
                rem(-157px));
            }
        }
        &.current {
            a {
                color: $subject-color;
                .home-icon {
                    @include img-position(rem(-61px),
                    0);
                }
                .type-icon {
                    @include img-position(rem(-61px),
                    rem(-52px));
                }
                .cart-icon {
                    @include img-position(rem(-61px),
                    rem(-105px));
                }
                .user-icon {
                    @include img-position(rem(-61px),
                    rem(-157px));
                }
            }
        }
    }
}

// head bar
.header-bar {
    height: rem(85px);
    background-color: $color-white;
    span {
        display: block;
        text-align: center;
        font-size: rem(32px);
        color: #606a7c;
        line-height: rem(85px);
    }
    .go-back {
        position: absolute;
        top: 50%;
        left: rem(38px);
        @include translate(0,
        -50%);
    }
}

.edit-quantity {
    font-size: rem(30px);
    button {
        outline: 0;
        border: 1px solid #acb3c0;
        width: rem(52px);
        height: rem(54px);
        background-color: transparent;
        font-size: rem(30px);
        color: #4D535F;
        line-height: rem(30px);
        &.decrease {
            border-top-left-radius: rem(10px);
            border-bottom-left-radius: rem(10px);
        }
        &.increase {
            border-top-right-radius: rem(10px);
            border-bottom-right-radius: rem(10px);
        }
    }
    input {
        width: rem(112px);
        height: rem(54px);
        border-top: 1px #acb3c0 solid;
        border-right: none;
        border-bottom: 1px #acb3c0 solid;
        border-left: none;
        border-radius: 0;
        text-align: center;
        -webkit-appearance: none;
    }
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.default-bullet {
    display: inline-block;
    margin: 0 3px;
    width: 7px;
    height: 7px;
    border: 1px $color-white solid;
    border-radius: 100%;
}

.default-bullet-active {
    background-color: $color-white;
}